home *** CD-ROM | disk | FTP | other *** search
-
- XDEF StrChr
-
- ; StrChr() - Finds first character D0 location in string in A0.
-
- ; Result:
- ; D0 = 0 if character was not found, or the address where found.
-
- StrChr:
- cmp.b (a0),d0
- beq.b .Found
- tst.b (a0)+
- bne.b StrChr
- moveq #0,d0
- rts
-
- .Found:
- move.l a0,d0
- rts
-